import 'package:flutter/material.dart';
import 'json.dart';
main()=>runApp(MyApp());

class MyApp extends StatelessWidget{

  Widget _WidgetContainer(v,i){
    return Container(
      child: Column(
        children: <Widget>[
          Image.network(DataList[i]['image'])
        ],
      ),
    );
  }
  Widget build(BuildContext context){
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("标题"),
        ),
        body: GridView.builder(
          //配置GridView 参数
          gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
            crossAxisCount:2
          ),
          itemCount: DataList.length,
          itemBuilder:this._WidgetContainer,
        ),
      ),
    );
  }
}